<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var obj = new Object();
        obj.name = "华仔";
        obj.age = 18;
        obj.fun = function(){
            alert("姓名"+ this.name + "年龄" + this.age)
        }
        alert(obj);
        obj.fun();
    </script>
</head>
<body>

</body>
</html>